package exp;

public class StringNode extends Node {
	
	private String s;

	public StringNode(Node right, Node left) {
		super(right, left);
	}
	
	public void setString(String s){
		this.s = s;
	}
	
	public String getString(){
		return s;
	}

	@Override
	public boolean isLeaf() {
		return this.getLeftNode() == null && this.getRightNode() == null;
	}
}
